

export default {
    data() {
        return {
         mixinRoutePath: ''
        }
       },
       mounted() {
        this.mixinRoutePath = this.$route.path
       },
       computed: {
        visitedViews() {
         return this.$store.state.tagsView.visitedViews
        }
       },
       watch: {
        visitedViews(value) {
         if(!value.some((item)=>{return item.path==this.mixinRoutePath})){       
         this.$destroy(true)
        }

         }
        }
       
}
